package com.lzk.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lzk.domain.ResponseResult;
import com.lzk.domain.dto.AddArticleDto;
import com.lzk.domain.dto.UpdateArticleDto;
import com.lzk.domain.entity.Article;
import com.lzk.domain.vo.PageVo;

/**
 * author: 刘中魁
 */
public interface ArticleService extends IService<Article> {
    ResponseResult hotArticleList();

    ResponseResult articleList(Integer pageNum, Integer pageSize, Long categoryId);

    ResponseResult getArticleDetail(Long id);

    ResponseResult updateViewCount(Long id);

    ResponseResult add(AddArticleDto article);

    PageVo selectArticlePage(Article article, Integer pageNum, Integer pageSize);

    ResponseResult getArticleMes(long id);

    ResponseResult updateArticle(UpdateArticleDto updateArticleDto);

    ResponseResult deleteArticle(long id);

//    ResponseResult getArticleList(Integer pageNum, Integer pageSize, String title, String summary);
}
